<?php 

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Table extends CI_Controller {

	public function index()
	{
		
	}
	function get($y=0,$m=0,$id=0)
	{
		if($y==0||$m==0||$id==0)
		{
			die('hack');
		}
		header('Access-Control-Allow-Origin: *');
		
		$this->load->model('json');
		echo $this->json->get($y,$m,$id);
	}
	function getlist($client=0,$agent=0,$type=0)
	{
		if($client==0||$agent==0||$type==0)
		{
			die('hack');
		}
		header('Access-Control-Allow-Origin: *');
		
		$this->load->model('json');
		echo $this->json->getlist($client,$agent,$type);
	}
}
?>